/*
Copyright (c) 2010 Vadim Seregin
Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/


#ifndef TRAYICON_H
#define TRAYICON_H

#include <wx/wx.h>
#include "wx/taskbar.h" // Base class: wxTaskBarIcon
#include "../../ico/tt_16x16.xpm"
#include "../../ico/tt_32x32.xpm"

class MainFrame;

class TrayIcon : public wxTaskBarIcon {

public:
	TrayIcon( MainFrame* pFrame );
	~TrayIcon();
	
	void SetIcon();

private:
	virtual wxMenu* CreatePopupMenu();
	virtual void OnLeftClick( wxTaskBarIconEvent& event );
	virtual void OnExitClick( wxCommandEvent& event );
	
	MainFrame* m_pcFrame;
	wxIcon m_cIcon;
	wxMenu* m_pcContextMenu;
};

#endif // TRAYICON_H
